<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>在指定div中浏览PDF</title>
        <!--在此引入bootstrap只为初始化样式div样式-->
        <link rel="stylesheet" href="css/bootstrap.min.css" />
        <style>
            /* 添加样式是为了实现全屏效果 */
            html,body{
                height: 100%;
                overflow: hidden;
            }

            #example1{
                height: 100%;
            }
        </style>
    </head>

    <body>
        <div id="example1"></div>

        <script type="text/javascript" src="js/pdfobject.min.js"></script>
        <script>


            let url = 'https://aaeasy-file.newbanker.cn/pic/testforyuhan/裴士杰的专属报告_2021-11-02_11_17_21.pdf'
            // 我的pdf文件放在项目的pdf文件夹下，名字叫做Java.pdf
            PDFObject.embed(url, "#example1");
        </script>
    </body>
</html>
